import request from "@/axios/request";
import url from "@/axios/url";
const { adminUrl } = url();
//获取用户身份详情
export function getUserD() {
  return request({
    url: `${adminUrl}user/detail`,
    method: "get",
  });
}
//更新用户身份详情
export function upUser(data) {
  return request({
    url: `${adminUrl}user/editmy`,
    method: "post",
    data,
  });
}
//更新用户身份密码
export function upPwd(data) {
  return request({
    url: `${adminUrl}user/updatePwd`,
    method: "post",
    data,
  });
}
// 用户头像上传
export function uploadAvatar(data) {
  return request({
    url: "user/avatar",
    method: "post",
    data: data,
  });
}
